{% load filters %}{% load elements %}
<li class="section-row">
	<div class="row-wrapper">
		<div class="name"><a href="{{ content.id }}/"><strong>{{ content.name }}</strong></a></div>
		<div class="inline-tools">
			<span><a href="{{content.id}}/delete/"><img src="/media/admin/delete.png" alt="x"/></a></span>
			<span class="select">
			<form action="{{ content.id }}/add/" method="POST">
			  {% list_element %}
			  <input type="image" value="send" src="/media/admin/icon-article-add.png"/>
			</form>
			</span>
			<span>
			<a href="{{ content.id }}/subsection/add"><img src="/media/admin/icon-section-add.png" alt="+"/></a></span>
			<span style="border:none;"><a href="{{ content.id }}/"><img src="/media/admin/icon-section-edit.png" alt="x"/></a></span>			
			<span style="width:100px;border:none;"><a href="{{ content.id }}/move/up/"><img src="/media/admin/icon-arrow-up.png" alt="up" /></a>{{ content.order }}<a href="{{ content.id }}/move/down/"><img src="/media/admin/icon-arrow-dn.png" alt="down"/></a></span>
		</div>
	</div>
	
	{% if verbose %}
	<ul>    
		{% for element in content.element_set.all %}
		<li class="article-row">
			<div class="row-wrapper">
				<div class="name">
				  <a href="../{{ element.etype }}/{{ element.id}}">
				  <strong>{{ element.title }}</strong>    {{ element.etype}}</a></div>
	            <div class="inline-tools">
	            	<span><a href="../articles/{{ element.id }}/delete/"><img src="/media/admin/delete.png" alt="X"/></a></span>
	            	<span style="border:none;">
                    {% ifequal element.etype "core:Article" %}
                        <a title="Modifica articolo" href="../articles/{{ element.id }}/">
                    {% else %}
                        <a title="Modifica articolo" href="../{{ element.etype }}/{{ element.id}}">
                    {% endifequal %}
                    <img title="Modifica Articolo" src="/media/admin/icon-article-modify.png" alt="+"/></a>
                    </span>
	            </div>
			</div>
		</li>
		{% endfor %}
	</ul>
	{% endif %}	
